package com.atguigu.yygh.hosp.repository;

import com.atguigu.yygh.hosp.bean.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMongodbRepository extends MongoRepository<User, String> {
    public List<User> findByName(String name);
    public List<User> findByNameLike(String name);

    public List<User> findByGenderTrue();
}
